#ifndef __APP_UI_H__
#define __APP_UI_H__

#include "includes.h"
#include "ReleaseCfg.h"

#include "touch.h" 
extern OS_EVENT  *gui_queue;

typedef struct gui_msg{
    uint8_t source; 
    uint8_t command;
    uint8_t value;
}gui_queue_msg_t;

typedef struct
{
    u8 CurrPage;
    u8 PrePage;
    u8 ExpPage;
}GuiInfoTyp;
enum
{
    PG_DEF=1,
    PG_DIY,
    PG_OPENDOOR_COUNT,
    PG_CARD_COUNT,
    PG_CARD_TIME,
	  PG_LIST_CFG,
		PG_RUNNING,
    PG_FINISH        
};


enum
{
	key,
	up,
  down,
  left,
	right,
	conform
};
void Task_UI_Logic(void *p_arg);  
u8 Tp_Location(_m_tp_dev tp_dev);
#endif
